/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pluginFonctions;

/**
 *
 * @author mazid
 */
public class Moyenne implements Function{

    @Override
    public double calculer(double[] valeurs) {
        double somme = 0;
        for (double val: valeurs) {
            somme+= val;
        }
        return somme / valeurs.length;
    }
    
}
